package diet.dao.mapper;

import diet.dao.entity.DietInfoPO;
import diet.dao.entity.DietRecordPO;

import java.sql.Date;
import java.util.List;

/**
 * Created by zyj on 2018/4/11.
 */
public interface DietMapper {

    DietInfoPO getDietInfoById(Integer dietId);

    List<DietRecordPO> selcetDietRecord(Integer userId,Date datetime);

    List<DietInfoPO> selcetALLDietInfo();

    List<DietInfoPO> selectDietInfoByName(String name);

    DietRecordPO getDietRecordById(Integer dietRecordId);

    int insertDietRecord(DietRecordPO dietRecordPO);

    void delectDietRecord(Integer id);


}
